package com.daisuxia.jms;

import java.util.HashMap;
import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.daisuxia.web.util.ThreadPool3;

/**
 * 公用jms发送方法
 * 
 * @author Administrator
 * 
 */
public class JMSsendMessageUtil {
	Logger logger = LoggerFactory.getLogger(this.getClass());
	private static JMSsendMessageUtil jmSsendMessageUtil = new JMSsendMessageUtil();

	private JMSsendMessageUtil() {
	}
	public static JMSsendMessageUtil getInstance() {
		return jmSsendMessageUtil;
	}
	/**
	 * jms发送的方法
	 * 
	 * @param map
	 */
	public void sendMes(Map<String, Object> map) {
		try {
			JMSProducer.getInstance().send(map);
		} catch (Exception e) {
			logger.error("sendMes error map=" + map, e);
		}
	}

}
